package cn.tedu.account.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)//开启链式编程
public class Account implements Serializable {

    private static final long serialVersionUID = 5028105760087871286L;
    private Long id;
    private Long userId;            //用户id
    private BigDecimal total;       //总数
    private BigDecimal used;        //以消费金额
    private BigDecimal residue;     //可用金额
    private BigDecimal frozen;      //冻结金额
}
